package cn.hanna.springcloudalibaba.dao;

import cn.hanna.springcloudalibaba.domain.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author smileha
 * @create 2021-10-22 22:41
 * @description
 */
@Mapper
public interface OrderMapper {

    // 创建订单
    void create(Order order);

    // 跟据订单号(订单id)更新订单状态
    void updateStatus(@Param("id") Long id,@Param("status") Integer status);
}
